package com.ja.inquiry.controller;

import com.ja.inquiry.mapper.UserMapper;
import com.ja.util.ResultBuildVo;
import com.ja.util.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 11936 on 2019/4/29.
 */

@RestController
@CrossOrigin
@RequestMapping("plan")
public class UserController {
    @Autowired
    private UserMapper userMapper;

    @GetMapping("getUser")
    public ResultVo getUser(){
        return ResultBuildVo.success(userMapper.getUser());
    }

}
